package com.yue.bean;

import org.aspectj.lang.annotation.*;
@Aspect
public class MyPointCut {
    @Pointcut("execution(* com.yue.bean.Hd.*(..))")
    public void pointCut(){};
    @Before("pointCut()")
    public void start(){
        System.out.println("pointCut start……");
    }
    @After("pointCut()")
    public void end(){
        System.out.println("pointCut end……");
    }
    @AfterReturning("pointCut()")
    public void rtn(){
        System.out.println("pointCut rtn……");
    }
    @AfterThrowing("pointCut()")
    public void throwEx(){
        System.out.println("pointCut throwEx……");
    }
}
